package com.ykx.message.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ykx.message.dao.MessageDao;
import com.ykx.message.model.Tmessage;
import com.ykx.message.service.MessageService;
@Service("messageService")
public class MessageServiceImpl implements MessageService{
	
	@Autowired
	private MessageDao messageDao;

	public void insert(Tmessage message) throws Exception {
		// TODO Auto-generated method stub
		messageDao.insert(message);
	}

	public void update(Tmessage message) throws Exception {
		// TODO Auto-generated method stub
		messageDao.update(message);
	}

	public Tmessage getMessage(String messageId, String consumerQueue) throws Exception {
		// TODO Auto-generated method stub
		return messageDao.getMessage(messageId, consumerQueue);
	}

	public void remove(String messageId, String consumerQueue) throws Exception {
		// TODO Auto-generated method stub
		messageDao.remove(messageId, consumerQueue);
	}

}
